#! /bin/bash
import rospy
from lesson3_srv.srv import *
def doNum(request):
    num1=request.num1
    num2=request.num2
    sum=num1+num2
    response=AddintsResponse()
    response.ans=sum
    rospy.loginfo("%d %d %d",request.num1,request.num2,response.ans)
    return response

rospy.init_node("sum")
rospy.Service("sum2",Addints,doNum)
rospy.spin()